Skip to content

Conversation

@albertomercurio
Copy link
Member

@albertomercurio albertomercurio commented Apr 24, 2025

Checklist

Thank you for contributing to QuantumToolbox.jl! Please make sure you have finished the following tasks before opening the PR.

  • Please read Contributing to Quantum Toolbox in Julia.
  • Any code changes were done in a way that does not break public API.
  • Appropriate tests were added and tested locally by running: make test.
  • Any code changes should be julia formatted by running: make format.
  • All documents (in docs/ folder) related to code changes were updated and able to build locally by running: make docs.
  • (If necessary) the CHANGELOG.md should be updated (regarding to the code changes) and built by running: make changelog.

Request for a review after you have completed all the tasks. If you have not finished them all, you can also open a Draft Pull Request to let the others know this on-going work.

Description

The noise process is currently computed at the time points the SDE integrator stops. The previous implementation of the derivative $d W / d t$ was using the finite difference between the last and the second to last noise points, which don't necessary coincide with the points expressed in tlist.

As long as there is no possibility to set the time list at which save the noise process (see this issue here) we should ensure that the derivative is computed between points in tlist.

I have also reduced the abstol for stochastic solvers from 0.01 to 0.001. This should make the simulations more stable.

Related issues or PRs

This PR tries to fix #452

@codecov
Copy link

codecov bot commented Apr 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.27%. Comparing base (130eafe) to head (6f89392).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #453      +/-   ##
==========================================
- Coverage   94.33%   94.27%   -0.06%     
==========================================
  Files          48       48              
  Lines        3016     3022       +6     
==========================================
+ Hits         2845     2849       +4     
- Misses        171      173       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@albertomercurio albertomercurio merged commit 68ed7c3 into qutip:main Apr 24, 2025
16 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

smesolve result inconsistent with one from qutip

2 participants